// Initializes the `shop-staffgl` service on path `/shop-staffgl`
const { ShopStaffgl } = require('./shop-staffgl.class');
const createModel = require('../../models/shop-staffgl.model');
const hooks = require('./shop-staffgl.hooks');

module.exports = function (app) {
  const options = {
    Model: createModel(app),
    paginate: app.get('paginate')
  };

  // Initialize our service with any options it requires
  app.use('/shop-staffgl', new ShopStaffgl(options, app));

  // Get our initialized service so that we can register hooks
  const service = app.service('shop-staffgl');

  service.hooks(hooks);
};
